home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 778 b | 22 lines | [TEXT/GEOL] |
- Item 4947432 18-Jan-91 21:14PST
-
- From: D6418 Jeppson, John,PRT
-
- To: CPLUS.DEV$ C++ Interest List--Developers
-
- ------------------------------------------------------------------------------
-
- Sub: Re: False start
-
- Your problem is a peculiarity of the MPW shell which sends the entire line as
- input.. including your prompt. So cin is getting the string which you just
- wrote with cout.
-
- If you terminate your prompt with "\n" and input from the next line, then your
- program works correctly.
-
- It's ugly, of course. I think someone once suggested a way to make the shell
- ignore first part of the line (the prompt) and just input the user's response,
- but I can't seem to remember how...
-
-